Fix an error in movement.