bug fix in Active/Inactive Calendars