knn update, fixed