[md] Applied patch from Stephen Roselia regarding Md magnitude plugin