Fixing `filter.factory()`

- Updating `filter.factory()` to set the `type` of the `input`