Fix pages order in page generator