fixed bug with item ordering when restoring backup