fixed issue with bad reference to negated variable that doesn't exist... should be criteria.negation