correct some connection bug