fixed bugs on DHT