bugfix tree-search