Datepicker bug fix.