bug fix to dht.deriv for removal model