fix 12944

https://code.google.com/p/goagent/issues/detail?id=12944