Datepicker: bug fix.