fixing bug in CreateAPIKeyOnInitAction