datepicker bug fixed