Fixed a display bug when creating a new page.