Fixed redundantly sending api key to shared state.