Set_page_config layout defaulting to "centered" even after defining as "wide"

I have a mulitpage app where one page is set to st.set_page_config(layout=“wide”) and the other is just left to default. Sometimes when I refresh or rerun my dashboard after making changes, the page that is set to wide will show as centered. I try to refresh the page again but it doesn’t correct back to wide unless I make a new change to the code and run it again.