Fixed api key saving.