diff --git a/tracking/particles.py b/tracking/particles.py
index 451ee4e1cf0c04586ac95f39ba9be1da2c078c93..3506db9b8968de3a506f8d4e1923712b1b73a7d3 100644
--- a/tracking/particles.py
+++ b/tracking/particles.py
@@ -692,7 +692,7 @@ class Beam:
         self.mpi.comm.Allgather([center,  MPI.DOUBLE], [self.mpi.center_all, MPI.DOUBLE])
         
         self.mpi.profile_all = np.empty((len(self), len(profile)), dtype=np.int64)
-        self.mpi.comm.Allgather([profile,  MPI.DOUBLE], [self.mpi.profile_all, MPI.INT64_T])
+        self.mpi.comm.Allgather([profile,  MPI.INT64_T], [self.mpi.profile_all, MPI.INT64_T])
         
         charge_per_mp_all = self.mpi.comm.allgather(bunch.charge_per_mp)
         self.mpi.charge_per_mp_all = charge_per_mp_all