fix channel index in traces