adg: reflect all the segments
Modified adg_path_reflect() to take into account also the other segments, not only the first one.