Fix NOT inversion