bug fix when goagent is not on