Fixing Sonar error.