Save the XML at the end when exporting as new project, small fixes