Fix unexpected global var