Fix provenance extraction