fix error safari datapicker