Fixed issue with API key generation.