WORDS-153 - change logic of filtering words