FILTERS: remove duplicate dict entries
fix 2 cosmetic issues found by PyCharm