Fix accidental introduction of global variable