fixing invalid function name error

trivial — but the function as is will generate an error because of a mismatch between the function name and the name that is passed to `add_filter`