Fixed a page creation bug