Fixed error in tree_processing.