Compile feature creates old version of page

When I switched to a new Mac on Sonoma 14.5 the compile feature did not work. I keeps compiling an old version of the page. I upgraded to Scrivener 3.3.6, but it still is a problem.

I created a new project and pointed to a new folder and compile works. It must have been pulling from the wrong backup or something.