fix editEvent in agenda