fixed page creation bug