Fix global var caused by misplaced semicolon.