Fixed prediction tree-traversal bug.