channel: fix ch_number type, might fix crashes and numbers > 2000