fixed pages edit problem