fix in Client::api