Fixed TCP read bug in client.