Fix bug in cal_nlk for mhd.