Fix a leaking global