Fixes #61. Array element off by 1.