Fix global vars.