fix bugs on dht (again)