Fix bug, global not set.