fix pages order