diff --git a/BDMesh/MeshUniform1D.py b/BDMesh/MeshUniform1D.py
index <HASH>..<HASH> 100644
--- a/BDMesh/MeshUniform1D.py
+++ b/BDMesh/MeshUniform1D.py
@@ -115,7 +115,7 @@ class MeshUniform1D(Mesh1D):
         max_step = max(mesh.physical_step, self.physical_step)
         step_ratio = max_step / min_step
         if check_if_integer(step_ratio, 1e-8):
-            for i in range(big_mesh.num - small_mesh.num):
+            for i in range(big_mesh.num - small_mesh.num + 1):
                 shift = (big_mesh.physical_nodes[i:i + small_mesh.num] - small_mesh.physical_nodes) / min_step
                 print(i, 'SHIFT: %3.12f, step ratio: %2.12f' % (min(abs(shift)), step_ratio))
                 if check_if_integer(min(abs(shift)), 1e-6):
correcting check if two uniform meshes are aligned.