getK bug fixed