Fixed the confusion in tree-interface.