fix bug in parameterisation