Fixed disconnect Lua error