fixed bug in cluster extractor.