fix compositefilter's match_words method