Fixed the page layout settings behavior.