Fix global variable mistake.