deceleration, velocity bugfix