Fixed small glitch when switching to DM mode