fix tdm