ZEN-10939: fix global name 'dmd' is not defined error