fix RuntimeAgent