fix the error in the tcp client example