bugfix: wrong key used when getting agent name

The get() method for getting the agent name was using the wrong key.