small corrections in the clustering scripts