change initial event and mode id when add them in safety editor