fixed editing of events