fix cycle redirects