small fix for the detection of channel type