API Key check fixed