bug fix in confidence