Fix negated query