Fixing ordering of pages