Corrected dragging issue