fix regression in drag and drop