lower_dw: add support for Bad nodes