Fix implicit creation of global variable