fix metadata for retract segment