Fix leak into global scope