fix crashing bug on KMeans-invalid input, update on default values