Fixed footnote generation