Fix bug in rendering topics