fix KMF migration