Fixes for https://github.com/OpenACalendar/OpenACalendar-Web-Core/issues/270