Solved a little index problem