fix kmp...finally...