fix channel query