tree: fix in dfs