Fix datepicker event