fixed a bug with printing the topics