Fixed a bug in TcpServer.