Fix bad variable name, "agent" should be "model"