Fixed a global variable name