Fixed the clustering bug.