Replaced topic_to_dict usage by self.topic_to_dict, should fix build