fix course section handling