diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp
index 0f38cd852059ade0de33be4ce18d1ac390a782d4..7c58ff7afd9bf9d284166727dfaaa9867a4fa156 100644
--- a/Marlin/Marlin_main.cpp
+++ b/Marlin/Marlin_main.cpp
@@ -2616,12 +2616,13 @@ inline void gcode_G28() {
             eqnAMatrix[probePointCounter + 0 * abl2] = xProbe;
             eqnAMatrix[probePointCounter + 1 * abl2] = yProbe;
             eqnAMatrix[probePointCounter + 2 * abl2] = 1;
+            indexIntoAB[xCount][yCount] = probePointCounter;
           #else
             bed_level[xCount][yCount] = measured_z + z_offset;
           #endif
 
-          indexIntoAB[xCount][yCount] = probePointCounter++;
-
+          probePointCounter++;
+  
           idle();
 
         } //xProbe