Fix a bug concerning creation of helper input params

Fixes a bug that causes corruption in output data.