fix tree traversal source