fixed broken index restore