fix k-means