channel: fix egregrious type errors