fixing bug with single calendars