fixed the drag and drop