restore parents lost in reparenting bug