Fix logic inversion.