fixing redirects