fix course sections handling