Fixed a dragging bug.