ecos: trace correction