registerFilter > addFilter

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