Fix index mixup.