goagent proxy redirection loop bugfix