fix default for api_url