fix a drag to desktop crash