Fixes CalendarService exception on MacOS.