fix console command bug.