fix a little in apiclient