Fix datepicker problems on webkit.