fix new year's bug with compareLastMonths method