fix dnd crash