Fix global variable definition