Fix loop size in previous patch (bnc#850907)