fix bad redirects