bug fix for use Kappa