fix drag and drop events