fix out of bounds error
Merge pull request #14 from curtisbright/patch-1

fix out of bounds error