Fixed a bug causing the --list to repeat the topic list multiple times