Fixed nil bug in predicting all courses