fixed bug with dynamicparams