fix global leakage
Merge pull request #13 from freewil/fix-global-leakage

fix global leakage