fixed duplication issue when modding events and fixed deleting events.