fix bug in sonar frame position