fix kmp next[0]=-1