fix the add event to calendar feature