corrected a bug in MICalculator class