bugfix foreign_course attrib is now taken into account