fix cpk in fgtree kernel