fix the api_key variable case