fixed sonar error