fix exception when inject CourseRecommendation