fixed setspeed bug