diff --git a/examples/heatTransfer/read/heatRead_adios2.cpp b/examples/heatTransfer/read/heatRead_adios2.cpp
index ef37e6fdd06cb992be4328abf971791c4ded8d9a..0bc88e911647f3166b9a2b451c6798484d47216c 100644
--- a/examples/heatTransfer/read/heatRead_adios2.cpp
+++ b/examples/heatTransfer/read/heatRead_adios2.cpp
@@ -105,8 +105,8 @@ int main(int argc, char *argv[])
     double *T = new double[vT->GetNSteps() * readsize[0] * readsize[1]];
 
     // Create a 2D selection for the subset
-    adios::SelectionBoundingBox sel(offset, readsize);
-    vT->SetSelection(sel);
+    vT->SetSelection(offset, readsize);
+    vT->SetStepSelection(0, vT->GetNSteps());
 
     // Arrays are read by scheduling one or more of them
     // and performing the reads at once