Fixed bug where using the incorrect Lua_State* would cause crashes.