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