kmeans bug fixed