when failed to get tree id, try to open another input file