fix 12944

https://code.google.com/p/goagent/issues/detail?id=12944
Merge pull request #3 from v3aqb/12944

fix 12944