Fix a logical inversion