Use correct variable name.

Code won't work otherwise.
Merge pull request #2 from jpmoral/chaining

Use correct variable name.