Modified the calendar import, fixed an exception condition