startYear, endYear bug fix