bugfix for selecting courses, grouped by name