core: Fix possible compliance mode detection error.