Confidence Calculation Bug Fixed