Remove array index warning

Okay 3rd try. looks now much better