fixed pages bug