Remove array index warning