Fixed bug with saving orders using XML libraries