fix filter state