Fixed year intersection logic in process_file()