fixes addMissingYears function