fix problems with resizing of scan area (from debian)