Shouldn't it be w_i?