fix bug in channel-scheduler