fix sonar critical