fixed a client bug