Fixed major bug in re-parameterisation.