fix footnotes getting added twice on pagebreak