fixed tree plotting