Added check for possible invisible enums after extraction.