Fix accidental global variable