dragging fix when clicking