Fixes a global leak