Made generation of knn complex reflexive.