fixes the movement event on click