Fixed bug with sorting save process.