fix #3154 filter endless loop