ApacheSpark kmeans fix.