fix permanent redirects