Fix a few drag-and-drop bugs.