fix an OOB issue with month-list indexing