Corrected global var wrongly named