Fix incorrect counting of courses in sub-categories