fixed bug with negated querys