Fix authorization issue in error page.