Fix problem on chooseCalendarDate, introduced some commits ago.