Fix agent model's origin