Fixed bug in channel_t.c