get_channels: bug fix