fixed some errors in dtr