Fix some errors in cal_nlk_mhd