bug fix datepicker