schema_document: Fix off-by-one error
Merge pull request #127 from JohnBrodie/master

Fix off-by-one error in schema_document