Fix wrong index numbers.