fix knn