Fixed the unregister channel method