Fixed an error for the calendar validation process