Fixed infinite loop in TopicBuilder constructor