Fixed some complile errors