Fixed global not found bug.