fixes redirects