Fix generating -0.0 as a confidence value.