Add Tree_Parent correction to tree build