fixes bug in core_diversity_analyses.py