Fix boolean inversion