Fixes a sonar warning.