Fixes BoundsError issue.

Fixes #34.