fix api key ref