Fix defect MAGN-84
Merge pull request #125 from ke-yu/StableBranchWithTestcases

Fix defect MAGN-84