correction to remove non persistent item when saving it