channel: fix egregrious type error