Fix resizing of the sonar