Add POI doesn't save to file

Writing to XML fixed on mac. Check for Linux and Windows.