Small bug fix in tcpClient