I have not used this particular function, but typically in the sampling features we only apply the filter to the input on the interface level and not the output.
Looking at your sample documentation it seems to also be the case here. I think you can just remove the filter on the output.