fixed incorrect glossary filter logic