Fixing the pages so they get generated correctly