Fixing for multiple Lua states.