fix minimum distance for clusters.