fixed bug occurring when braking in reverse