Dragging bugfixes.
Fix clearing bug.