Fixed unfortunate declaration of a global variable