off-by-one error?
Merge pull request #1 from davharris/master

Fix off-by-one error