fix datepicker load bug