Fix trigger index after insertion in the model side.
Fix target trigger index update after trigger insertion.