Off-by-one error

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Merge pull request #1 from lemenkov/off_by_one

Off-by-one error