Fix definition of global variable