fixed date error