strange bugs in knn