Fixes issue where more than one page was created when creating an item with has_page