Fix some dragging behavior