fixed add_client error