Solved a problem setting api location