Fix footnotes formatting