Fixed problem in apiclient