Correction of 49efcd1: Wrong index variable