fix channel context manager