Fix date field bug in Chrome