Fixing a bug in calendar event updates