fix drag-and-drop example crash