Merge pull request #669 from joemphilips/fix_capacity-is-always-zero-bug_in_list_channels