Fix global var leak.
Merge pull request #20 from davetodd/global-var

Fix global var leak.