Solve scoping problem on channel creation