fixed bug in EV_analysis.c