fixed bug in method APIClient