fixed a mistake in ecosmodule.c