fixed plotClustering()