Fix d in D if t in d for idf