fix date field