Fix global scope pollution with global variables.