fix work when dht is not loaded yet
fix access to stack var