fix(global): Fix global leaks