fix an exception issue in the client.