prevent crash if deleting and dragging same object