correct a string compare error