Fixed error in movement.