fix filter factory