fixed drag and drop bug