fix for enrollment crash when fetching course by id