fixed some typos in agent