Fix the (c1+c2)/(n1+n2) != (c1/n1+c2/n2) bug