fixed tree error