Hide overlays while dragging and fix crash