Fixed inversion of logic.