diff --git a/Event/LumiEvent/src/HltLumiSummaryDecoder.cpp b/Event/LumiEvent/src/HltLumiSummaryDecoder.cpp
index a3eec1afa285c1988bb5b95ae7f2be7c895e4e85..87f2447f807b5f8c0021371d64a771898c6bfadc 100644
--- a/Event/LumiEvent/src/HltLumiSummaryDecoder.cpp
+++ b/Event/LumiEvent/src/HltLumiSummaryDecoder.cpp
@@ -108,8 +108,8 @@ namespace LHCb {
                                        LHCb::LumiSummaryOffsets::V2::encodingKeySize, ibank->data() );
           if ( encodingKey != 0x61967914 ) { // This encoding key is the hash of the JSON representation of the initial
                                              // fixed V2 schema
-            auto lumi_schema = m_svc->lumiCounters( encodingKey, 2 );
-            if ( ibank->size() != lumi_schema.size ) {
+            auto lumi_schema = m_svc->lumiCounters( encodingKey, 0 );
+            if ( static_cast<unsigned>( ibank->size() ) != lumi_schema.size ) {
               warning() << "Bank size incorrect for HltLumiSummary V2: expected " << format( "%4d", lumi_schema.size )
                         << " for encoding key " << format( "%8x", encodingKey ) << ", found "
                         << format( "%4d", ibank->size() ) << endmsg;