Fix tree rooting.