fixed some typos in the agent