Issue #22073: fix footnote references.