fix extra page creation