Fixes bugs in the new filter function option