fix too many redirects