fixed reading topics from file