bugfixing in calendarEvent