fixed tree height overflow