fix deprecated calls to getK() in unions