Corrected dragging bug