diff --git a/dumux/boxmodels/2p2c/2p2cmodel.hh b/dumux/boxmodels/2p2c/2p2cmodel.hh
index 6ece7609647121073240298f32c05473cd3240ad..9256acd6a1b254e1eee375b6dca95bab4dfafb58 100644
--- a/dumux/boxmodels/2p2c/2p2cmodel.hh
+++ b/dumux/boxmodels/2p2c/2p2cmodel.hh
@@ -641,11 +641,11 @@ protected:
     void resetPhasePresence_()
     {
         int numVertices = this->gridView_().size(dim);
-        for (int i = 0; i < numVertices; ++i)
+        for (int idx = 0; idx < numVertices; ++idx)
         {
-            staticVertexDat_[i].phasePresence
-                = staticVertexDat_[i].oldPhasePresence;
-            staticVertexDat_[i].wasSwitched = false;
+            staticVertexDat_[idx].phasePresence
+                = staticVertexDat_[idx].oldPhasePresence;
+            staticVertexDat_[idx].wasSwitched = false;
         }
     }
 
@@ -655,11 +655,11 @@ protected:
     void updateOldPhasePresence_()
     {
         int numVertices = this->gridView_().size(dim);
-        for (int i = 0; i < numVertices; ++i)
+        for (int idx = 0; idx < numVertices; ++idx)
         {
-            staticVertexDat_[i].oldPhasePresence
-                = staticVertexDat_[i].phasePresence;
-            staticVertexDat_[i].wasSwitched = false;
+            staticVertexDat_[idx].oldPhasePresence
+                = staticVertexDat_[idx].phasePresence;
+            staticVertexDat_[idx].wasSwitched = false;
         }
     }