fixed the date field