Fixing a corner case for reparent.