fixed kmeans