fix tautological compare error