diff --git a/src/core/PlumedMain.cpp b/src/core/PlumedMain.cpp
index e314a141aab6f73297f94a926b97a67a880d0063..d28039dbf6297a264d799f2be6f13c79ad9807f6 100644
--- a/src/core/PlumedMain.cpp
+++ b/src/core/PlumedMain.cpp
@@ -19,6 +19,7 @@
    You should have received a copy of the GNU Lesser General Public License
    along with plumed.  If not, see <http://www.gnu.org/licenses/>.
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
+#include "PlumedMain.h"
 #include "ActionAtomistic.h"
 #include "ActionPilot.h"
 #include "ActionRegister.h"
@@ -29,7 +30,6 @@
 #include "CLToolMain.h"
 #include "ExchangePatterns.h"
 #include "GREX.h"
-#include "PlumedMain.h"
 #include "config/Config.h"
 #include "tools/Citations.h"
 #include "tools/Communicator.h"