fix all egnine according to new KMF 1.9.0
fix sample according to new KMF