minor fix to transform_params