diff --git a/src/Vector/vector_dist_comm.hpp b/src/Vector/vector_dist_comm.hpp
index 5f9dd10c4eabe4fda476b232b98da62c0d0d3a77..275c70a9c23c8a495031174879e111636fccb8ac 100644
--- a/src/Vector/vector_dist_comm.hpp
+++ b/src/Vector/vector_dist_comm.hpp
@@ -292,13 +292,13 @@ class vector_dist_comm
 			unsigned int box_f_sv;
 			Box<dim,St> box_f_dev;
 
-			bool operator<(const sh_box & tmp)
+			bool operator<(const sh_box & tmp) const
 			{
 				return shift_id < tmp.shift_id;
 			}
 
 		};
-		openfpm::vector<struct sh_box> reord_shift;
+		openfpm::vector<sh_box> reord_shift;
 
 		// Add local particles coming from periodic boundary, the only boxes that count are the one
 		// touching the border