Avoid redefinition of DD and add information when catching exception
Wrong output was written