diff --git a/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C b/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C
index 95389d0151a1d107b544efe052fc5038a0a00efc..8d8397210146624aa3ac0ff8cdbb627baacaa1bb 100644
--- a/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C
+++ b/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C
@@ -3,7 +3,7 @@
   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
    \\    /   O peration     |
     \\  /    A nd           | Copyright (C) 2011-2017 OpenFOAM Foundation
-     \\/     M anipulation  | Copyright (C) 2015 OpenCFD Ltd.
+     \\/     M anipulation  | Copyright (C) 2015-2017 OpenCFD Ltd.
 -------------------------------------------------------------------------------
 License
     This file is part of OpenFOAM.
@@ -201,7 +201,7 @@ void Foam::functionObjects::fieldMinMax::calcMinMaxFields
 
                 label maxi = findMax(maxVs);
                 scalar maxValue = maxVs[maxi];
-                const label maxCell = minCells[maxi];
+                const label maxCell = maxCells[maxi];
                 const vector& maxC = maxCs[maxi];
 
                 output