Fixed passesFilter being incorrectly negated in filterStackToGroup