Fixed the bug, simple off by one error

Seriously.  < vs <=