support ANDed filtering

fix a bug in ANDed filtering