fix bug with agent name