Small fix for ArrayOutOfBoundsError
Merge pull request #64 from WannabeSid/master

Small fix