Fix sonar array warning