fixed artifact error in kmeans