Fix accidental write to global variable.
Merge pull request #472 from glasser/patch-1

Fix accidental write to global variable.