redirection loop fixed