Fixed error when editing subevents