Fixed small error during generation of agent 2