Fixed bug that prevented to restore from remote backups.