fix a bug in 2d kmeans bottle