Fix combination of "exclude" and top-level boolean operator