Corrected the associateIdeaToTopicFunction