Fixed kappa bug causing improper units