Fix a bug where topics were being nested in one another.