agent.rb: Fix merge

Seems like something went wrong when this was merged...
Merge pull request #169 from aschuch/patch-1

agent.rb: Fix merge