Added logic to handle months not in correct_dates