fixed bug with API url (build)