Fixed traversal tree bug.