fixed the loop in addPartitionTopicInfo