Fixed target index calculation.