BUG: fix channel indexing