Fixed crashing when registering new channel