diff --git a/src/jamidht/sync_module.cpp b/src/jamidht/sync_module.cpp
index 017858dc70e6b7742e4bdde95ea94c92b3b3d1d3..61dbce5afaa176d9afd18bb090fb37157d125024 100644
--- a/src/jamidht/sync_module.cpp
+++ b/src/jamidht/sync_module.cpp
@@ -66,6 +66,7 @@ SyncModule::Impl::syncInfos(const std::shared_ptr<ChannelSocket>& socket)
         if (info->contacts) {
             SyncMsg msg;
             msg.ds = info->contacts->getSyncData();
+            msgpack::pack(buffer, msg);
             socket->write(reinterpret_cast<const unsigned char*>(buffer.data()), buffer.size(), ec);
             if (ec) {
                 JAMI_ERR("%s", ec.message().c_str());