Fixed mmd in C#.