fixed bug with first day of month