fix on_speed getting zero parameter when it shouldn't do