Fix accidental global variable
Merge pull request #125 from timoxley/patch-2

Fix accidental global variable