fixed off by 1 error

Signed-off-by: Andrew R <andrewreds@gmail.com>