I am working with overleaf, and the following code:
\documentclass{amsart}
\usepackage{glossaries-extra}
\begin{document}
\tableofcontents
\section{Sample}
\end{document}
will give the following output:
The title "Contents" of the table of contents appears below the actual table of contents. Is there any fix?