fixes "`year` is not defined"