fix bug for channel