Fixed the calendar bug - items are not displayed correctly when opened multiple times