global.lua fix