fixed some bugs in the channel