fixed date-bug