Fix loop redirection