fix month off-by-one bug