fix the issue with listings in footnotes