Fix docking, and dragging.