Fix global reference