Made the calendar feature contexts more crash proof