fixing date errors with orphans