fix regression in md/mw commands