bug fix. allow to remove DM