fixing the restore syntax