fix problem of case_analysis.py