fixed index

not sure what went wrong