fixed disconnect problem