Bug correction in the createIdeaFunction