fix iterating over months