Fix performance regressionRemove course_from_id
don't fetch whole course when the root will do
don't fetch even the root if the id will do