Fix bug where API key was not being added to default_params