fix filter crash