corrected true kappa bug