workaround for datepicker bug