fixed Calculation Bug #1.