Fix bugs with event editor creating new appointments instead of updating old