Fixed saving of deleted items