Fixed error with encrypt_api_key