Fixed bug in how initial parameter values are set.