fixed minor sonar issue