Fixed issue with api_request().