fixed tree.createNode