fixed tree.render and tree.renderNode function.