#87 fixed bug with incorrect motion after flipping the direction of the velocity vectors