Fixed a TCP read bug.