Fixed bad load call (instead of save)
Fixed not written XML output