avoid getspeed return error.