fix sth of client.c