fixed tree.getRoute