date field fix