add params properly when using wildcard

fix #8071
In which case your original solution would have worked too.  Sorry