fix the date issue with the calendar