fix bug datepicker dialog