fixed index problem 1