fixed sonar bug