Handle correctly when multiple courses have an exercise with same name.