Fix 'dm' for ios/osx