fixed month off by 1 issue