fix typo in agent