datepicker bug fixes