fixed date errors