Adding the cookie fix to page.ts.