fix channel index