fixed a bunch of bugs that cropped up when recycling mm0 and
shrinking Index union