Fix bug when channels: ~ or channels: [] is used