Fixed logic error in echo_client.py