Fix silly of by one

Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>