fixed the date entry