Fixed error storing API key.