fixed grandchild inserting issue