handle prev month properly