Fixed infinite loop during self drag and drop.