I am using the etoolbox package to set the footnote spacing to single spaced inside my double spaced document. However, if I have a lot of footnotes on a page, they overwrite the page number. How can I get my footnotes to respect the normal bottom margin as on pages without footnotes?

[![enter image description here](https://i.stack.imgur.com/Wl2ob.png)](https://i.stack.imgur.com/Wl2ob.png)

```
\documentclass[preprint,nofootinbib]{revtex4-2}
\usepackage{setspace} 
\footnotesep=10pt
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@footnotetext}
{\setspace@singlespace}{0.8}
{}{}
\makeatother
\usepackage{lipsum}
\begin{document}
\title{Exciting Title about Interesting Subject}
\author{Fantastic Author}
\affiliation{Magnificent Affiliation}
\date{\today}
\begin{abstract}
\lipsum[1]
\end{abstract}
\maketitle
\pagenumbering{gobble}
\newpage
\raggedbottom
\pagenumbering{arabic}  
\setcounter{page}{1}

\lipsum[1]\footnote{This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.}

\lipsum[1]\footnote{This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.    This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number.  This footnote tends to overlap the page number}

\lipsum[1-5]

\end{document}

```