Removed bad reference to global variable