clampIndex was not… clamping properly.