modify bug in datepicker