fix redirects