Fix issue with boxes getting hidden when dragging