fixed agent actions after id changes