Correction of a bug happening if the input file ends before the year currently processed.