Fixed missing courses bug for fetch_courses