Backup restore logic fix.