Fixed minor bug when K-means Clustering ran for only few rounds