fixing APIKey Bug