Fetches params in makeFilter

Fixes #5280