fix bug in channel