Fixed sonar warning.