fix logical bug in ecalchi2::process