fix setspeed bug