small kmeans input fixes