fix datepicker when edit