fix bug analysis_v4.sh