fix api issue
ctx channel api fix