Fix saving project to XML file