registerFilter > addFilter

I don't find the `registerFilter` method in `Environment`, I guess it should be `addFilter`.