fixed error in k-means visualization