fix bug where inclusion being false was negating matchings then returning, rather than matching and negating the result and returning that