fix bug when undoing deleting of nested bang boxes