fix an undefined variable bug in the DTP module
Landing #1871 - fix an undefined variable bug in the DTP module