fixed Sonar issue