Fixes krefs in chan.c