Minor changes to mask_mhd.