Fix another usage of a global variable