tree_to_list problems