Fix bug for client.c