fixing month off-by-one-bug