fix bug in muon generater