Fix error with producing new tree on extending root