fixed error in nextYear, previousYear, and setYear