fix(global): Fix global leaks
Merge pull request #442 from luvit/fixes/global_leaks

fix(global): Fix global leaks