Fixed incorrect implementation of the iCalendar class.