bugfix in EV_analysis.c