correcly reference params, fixes #264