Fixing MD problem