Fixed a few errors in the TcpClient so it works out of the box