diff --git a/src/meshTools/meshToMesh/meshToMesh.C b/src/meshTools/meshToMesh/meshToMesh.C
index 5a6745a..eef8cd5 100644
--- a/src/meshTools/meshToMesh/meshToMesh.C
+++ b/src/meshTools/meshToMesh/meshToMesh.C
@@ -107,8 +107,8 @@ Foam::meshToMesh::meshToMesh
         label i = 0;
         forAllConstIter(HashTable<word>, patchMap, iter)
         {
-            const word& tgtPatchName = iter.key();
-            const word& srcPatchName = iter();
+            const word& tgtPatchName = iter();
+            const word& srcPatchName = iter.key();
 
             const label srcPatchi =
                 srcMesh_.boundaryMesh().findPatchID(srcPatchName);
