fix bug in init_channel return dictionary