diff --git a/source/adios2/ADIOS.inl b/source/adios2/ADIOS.inl
index 6be677d6284227512be935e4d043c87d89112817..8b82f2e85e94b1dcc15c08f841284670a57549cf 100644
--- a/source/adios2/ADIOS.inl
+++ b/source/adios2/ADIOS.inl
@@ -25,7 +25,7 @@ VariableCompound &ADIOS::DefineVariableCompound(const std::string &name,
     const unsigned int size = m_Compound.size();
     m_Compound.emplace(size, VariableCompound(name, sizeof(T), dimensions,
                                               globalDimensions, globalOffsets,
-                                              m_DebugMode));
+                                              false, m_DebugMode));
     m_Variables.emplace(name, std::make_pair(GetType<T>(), size));
     return m_Compound.at(size);
 }
diff --git a/source/adios2/core/Engine.cpp b/source/adios2/core/Engine.cpp
index 81d17e75685f981b756ad1239fac251cce7a7f2a..af390ee594eeb1be3f0123d1575a39ea58f5978f 100644
--- a/source/adios2/core/Engine.cpp
+++ b/source/adios2/core/Engine.cpp
@@ -224,6 +224,7 @@ Variable<unsigned int> *
 Engine::InquireVariableUInt(const std::string & /*name*/, const bool /*readIn*/)
 {
     EngineThrowUp(m_EngineType, "InquireVariableUInt");
+    return nullptr;
 }
 Variable<long int> *Engine::InquireVariableLInt(const std::string & /*name*/,
                                                 const bool /*readIn*/)
diff --git a/source/adios2/core/VariableBase.h b/source/adios2/core/VariableBase.h
index 2509c851f73080576105a7fa71f2757ca2b3e2e6..2ba2d8432f52fee6c39540d52da3313ec2f9fdc6 100644
--- a/source/adios2/core/VariableBase.h
+++ b/source/adios2/core/VariableBase.h
@@ -155,8 +155,8 @@ public:
                 "Variable.SetSelection() for local or joined array '" + m_Name +
                 "' should pass an empty 'start' argument\n");
         }
-        ConvertUint64VectorToSizetVector(count, m_Count);
-        ConvertUint64VectorToSizetVector(start, m_Start);
+        m_Count = count;
+        m_Start = start;
     }
 
     /**
@@ -165,7 +165,10 @@ public:
      */
     void SetSelection(const SelectionBoundingBox &sel)
     {
-        SetSelection(sel.m_Start, sel.m_Count);
+        Dims start, count;
+        ConvertUint64VectorToSizetVector(sel.m_Start, start);
+        ConvertUint64VectorToSizetVector(sel.m_Count, count);
+        SetSelection(start, count);
     }
 
     /**