fixed the calendar crash