Fixed leaked global.