Fixed array out of bounds index