Fixed an annoying bug with createPage