bug fix: params-array needs to be cloned