fixed tree-check