Changes from revision 768320 introduced another bug: footnotes from later steps were taken into account too early