tdetect fixes