fix the channel construction