fix string compare error