fix issue of children with legacy parent links from deletion