fixed error when there were no subtopics, conformed to linter standards