Fixed redirect code for KMeans2.