fix bug: crash on having 2 components of a course