Fix leaky global
Merge pull request #9 from jbt/patch-1

Fix leaky global