Sonar correction