fixed bug with API url