Bug fix

It wasn't actually multiplying the content of the buffer by the right
number but the number plus one.