fix connection read bug