corrected bug in clusters.py