Fixed bug in get_tree_from_file