Fix accidental global variable

One of the dangers of chaining with commas.
Merge pull request #19 from timoxley/patch-1

Fix accidental global variable