NetworkStream fix