Fixed the month off-by-one issue