Fix duplicating pages