Fix subsmp_ratios for loop