Fixed bug with thread. DHT queries