Improved positioning of footnotes