Fix violation that was found by Sonar.