fixing drag and drop