fix bug of client.py