diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp
index 0ea70d4d2938d01789dd7b27039cf49a9763d06c..59eb7e538019442e4e9d3a8d15edba4a36271d06 100644
--- a/src/dht_proxy_server.cpp
+++ b/src/dht_proxy_server.cpp
@@ -1176,7 +1176,7 @@ DhtProxyServer::put(restinio::request_handle_t request,
                                 }
                             }
                             auto response = initHttpResponse(request->create_response());
-                            response.append_body(Json::writeString(jsonBuilder_, value->toJson()) + "\n");
+                            response.append_body(Json::writeString(jsonBuilder_, pp.second.value->toJson()) + "\n");
                             return response.done();
                         }
                     }