fix bugs to fail to detect channels