modify kmeans a bug