Fixed output of knn