fix crash when deleting nested BBoxes