too many redirects fixed