Corrected global variables scope access.