Fixed the _G environment issue