fix bugs in install_goagent