fix filtering of parameters.