Fix a bug in calculating Mc in core formulation