Fixed bug in tree.get