Fixed NPE in channel initialization