fixed ArrayIndexOutOfBoundsException
Merge pull request #3 from mewin/test

fixed ArrayIndexOutOfBoundsException