What did you export to see the bug? An embedded pdf? A compile to pdf? Be specific.
For Compile, header/footer settings are at Page Setup in Compile, not at File/Page Settings. An embedded pdf would have page numbers embedded (or not), and either way, Page Settings don’t matter.