minor fix in unused codepath in knn_search