bugfix for channel crash