fixed tree._renderNode function