fix for simple subsetting broken by complex subsetting.