fixed index array out of bounds