correct date error