diff --git a/install_scripts/linux/ubuntu/debian/rules b/install_scripts/linux/ubuntu/debian/rules
old mode 100644
new mode 100755
diff --git a/umit/gui/MainWindow.py b/umit/gui/MainWindow.py
index bdcb522..91deaf8 100644
--- a/umit/gui/MainWindow.py
+++ b/umit/gui/MainWindow.py
@@ -596,14 +596,14 @@ class MainWindow(UmitMainWindow):
 
         xml_scanfile = mktemp()
         f = open(xml_scanfile, "w")
-        current_page.parsed.write_xml(f)
+        current_page.get_parser().write_xml(f)
         f.close()
 
         log.debug("Adding scan to inventory database..")
 
         xmlstore = XMLStore(Path.umitdb_ng, False)
         try:
-            xmlstore.store(xml_scanfile, current_page.parsed, inventory_title)
+            xmlstore.store(xml_scanfile, current_page.get_parser(), inventory_title)
         finally:
             # close connection to the inventory's database
             xmlstore.close()
@@ -1315,7 +1315,7 @@ Start a scan an then try again'))
         log.info('Exporting ..')
         
         import umit.export.html.Parse
-        a = umit.export.html.Parse.ExportHTML(saving_page.parsed, \
+        a = umit.export.html.Parse.ExportHTML(saving_page.get_parser(), \
                                              filename)
         a.generate_html()
         a.save()
