fixing bugs with parameterization.
Fixing bugs with parameterization.