I am writing a report with different geometry settings for the title page, so after finishing the latter with \end{titlepage}, I specified the new settings for the rest of the document using \restoregeometry and then \newgeometry{letterpaper,textwidth=7in,textheight=9.5in}.

Nevertheless, I am experiencing an issue with the page numbers: they are slightly shifted to the left. I can clearly see this by writing a centered number just over the page number (see the image below). How can I fix that?