fixed ArrayIndexOutOfBoundsException from issue #99

https://github.com/ForestryMC/ForestryMC/issues/99