Fix the API url.