fixed bug in calculate_classification_statistics