diff --git a/trainer.h b/trainer.h
index 50108d17fb3da5dd58e7541eec0730a0815c78ad..95bf8f88e01382ac8b7b040e77543ba187abfbc5 100644
--- a/trainer.h
+++ b/trainer.h
@@ -298,7 +298,7 @@ class MPI_Trainer_HOST: public MPI_Trainer {
 
   public:
     MPI_Trainer_HOST(int &rank, int &ncpu):
-      MPI_Trainer(rank. ncpu),
+      MPI_Trainer(rank, ncpu)
   {}
 
     void prep_wpckgs() {
@@ -427,7 +427,7 @@ class MPI_Trainer_WORKER: public MPI_Trainer {
 
   public:
     MPI_Trainer_WORKER(int &rank, int &ncpu):
-      MPI_Trainer(rank. ncpu),
+      MPI_Trainer(rank, ncpu)
   {}
 
     bool release_tag() {