fixed a bug in client.h