Fix datepickerMode