Fix some issues in the display topic previews function