fixed datepicker bug in safari