Fixed indices in loop svd