Fix computation of confidence interval