Fixed redirection loop