fixed the date object