getModel fixes for kmeans