Fixed global variable declaration