fixes nonzero remainder in velocity ramp