kmeans list empty fixed