Adding an assert on parent_id