Fix the gateway function filters.