correct date error in search