fix realize_filter bug introduced by 1fd7f16a