Fix bug where days were missing in certain months